﻿

using Microsoft.EntityFrameworkCore;
using MySql.Data.EntityFramework;
using System.Configuration;
using System.Data.Entity;

namespace MysqlCoreDemo
{
    [DbConfigurationType(typeof(MySqlEFConfiguration))]
    public class EFmysqlContext : System.Data.Entity.DbContext
    {
        private const string Name = "ProjectDB";

        public EFmysqlContext():base($"name={Name}") 
        {
           
        }

        public virtual System.Data.Entity.DbSet<User> Users { get; set; }       //这里有几个类就写几个类
        public virtual System.Data.Entity.DbSet<Data> Datas { get; set; }       //这里有几个类就写几个类


    }
}
